package com.ninetaildemonfox.zdl.socialproject.utils.dialog;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ninetaildemonfox.zdl.socialproject.base.BaseActivity;
import com.ninetaildemonfox.zdl.socialproject.R;
import com.ninetaildemonfox.zdl.socialproject.mvp.ui.activity.PublishAnAppoointmentActivity;
import com.ninetaildemonfox.zdl.socialproject.mvp.ui.activity.PublishingDynamicsActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author NineTailDemonFox
 * @date 2019/7/22 9:08
 * 功能描述： 电台界面弹出的发布界面
 * 联系方式：1037438704@qq.com
 */
public class ReleaseDialog extends BaseActivity {

    @BindView(R.id.text_appintment)
    TextView textAppintment;
    @BindView(R.id.text_dynamic)
    TextView textDynamic;
    @BindView(R.id.image_left_finish)
    ImageView imageleftFinish;
    @BindView(R.id.text_center)
    TextView textCenter;
    @BindView(R.id.text_right)
    TextView textRight;
    @BindView(R.id.ll_view_gone)
    LinearLayout ll_view_gone;

    @Override
    protected int getLayoutResource() {
        return R.layout.dialog_release;
    }

    @Override
    protected void onInitialization(Bundle bundle) {
        textCenter.setText("电台");
        textRight.setVisibility(View.VISIBLE);
        textRight.setText("发布");
    }

    @OnClick({R.id.text_appintment, R.id.text_dynamic, R.id.text_right, R.id.ll_view_gone})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.text_appintment:
                startActivity(new Intent(this, PublishAnAppoointmentActivity.class));
                finish();
                break;
            case R.id.text_dynamic:
                startActivity(new Intent(this, PublishingDynamicsActivity.class));
                finish();
                break;
            case R.id.text_right:
            case R.id.ll_view_gone:
            default:
                finish();
        }
    }
}
